package com.bphx.android.activities;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import static com.bphx.android.R.id.*;
import static com.bphx.android.R.layout.main;

public class MainMenuActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);
        setContentView(main);

        findViewById(startTraining).setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainMenuActivity.this, TrainingActivity.class);
                startActivity(intent);
            }
        });

        findViewById(wordsManager).setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainMenuActivity.this, WordManagerActivity.class);
                startActivity(intent);
            }
        });

        findViewById(networkManager).setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainMenuActivity.this, NetworkManagerActivity.class);
                startActivity(intent);
            }
        });

        findViewById(options).setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View v) {
                startActivity(new Intent(MainMenuActivity.this, OptionsActivity.class));
            }
        });
    }
}